extends Sprite2D

func UpdateAlpha(newValue:float):
	modulate.a = newValue



func StartFading():
	var newTween = get_tree().create_tween()
	newTween.tween_method(UpdateAlpha,0.8,0.0,1.0)
	newTween.finished.connect(func ():
		queue_free()
	)
